DIR=$1
PER=1

usage()
{
	echo "$0 <dir>"
}

[ -z "$DIR" ] && usage && exit 1
[ ! -d "$DIR" ] && echo "Directory \"$DIR\" not exists!" && exit 1

while true
do
	size=$(du -s "$DIR" | awk '{print $1}')
	echo -ne "$DIR\t$size"
	echo -ne "\r"
	sleep "$PER"
done
